package com.dmlll.dao;

import com.dmlll.pojo.County;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CountyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(County record);

    int insertSelective(County record);

    County selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(County record);

    int updateByPrimaryKey(County record);

    //根据市ID查询全部县
    List<County> selectCounty(@Param("code") String code);

    String selectCodeByName(@Param("name")String name,@Param("cityCode")String cityCode);
}